<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    

    <script>


        let html = '' ;
        for(let i = 0 ; i < localStorage.length ; i++) {
            let key = localStorage.key(i) ;
            if(key.includes('QWERT__')) {
                console.log(key);

                const str = localStorage.getItem(key) ;


                // 解构
                const {
                    uname ,
                    upwd , 
                    uemail
                } = JSON.parse(str) ;

                html += `
                    <tr>
                        <td>${i + 1}</td>
                        <td>${key.replace('QWERT__' , '')}</td>
                        <td>${uname}</td>
                        <td>${uemail}</td>
                        <td>${upwd}</td>
                    </tr>
                `
            }
        }

        console.log(html);

    </script>
    
</body>
</html>